package com.xsz.oa.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xsz.oa.dao.UserDao;
import com.xsz.oa.model.entity.sys.User;
import com.xsz.oa.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	@Autowired
	private UserDao userDao;
	
	public User findByUsername(String username) {
		return userDao.findByUsername(username);
	}


	public User get(User user) {
		// TODO Auto-generated method stub
		return null;
	}


	@Override
	public List<User> findAll() {
		return userDao.findAll();
	}

}
